﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xss.Data.Mapper
{
    public class ExecuteReaderMapper : AdoMapper
    {
        public IReaderCallback callback { get; set; }

        protected override object ExecuteIntenal(object paramater)
        {
            var cmd = new AdoCommander(Request.Store.CurrentSession);
            return cmd.ExecuteReader(System.Data.CommandType.Text, Sql.GetStatement(paramater), callback);
        }
    }
}
